package com.shop.dao;

import com.shop.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    Category selectByCategoryId(Long categoryId);

    List<Category> selectByLevelAndParentIds(@Param("parentIds")List<Long> parentIds, @Param("categoryLevel") int categoryLevel);

    List selectIdAndName();
}
